package com.meituan.sdk.model.pms.accounting.getBillSummary;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 获取账务金额汇总
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/accounting/getBillSummary",
    businessId = 57,
    apiVersion = "10014",
    apiName = "get_bill_summary",
    needAuth = true
)
public class GetBillSummaryRequest implements MeituanRequest<GetBillSummaryResponse> {
    /**
    * <p data-diff-id="ct-diff-id-e85862a8-c41e-433e-8f2e-27bf2c6806a5"><span style="color: rgba(0, 0, 0, 0.65)">酒店ID</span></p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-0c3b5385-f022-460a-be20-83ab5100b1aa"><span style="color: rgba(0, 0, 0, 0.65)">账套ID列表</span></p>
    */
    @NotEmpty(message = "billIds不能为空")
    @SerializedName("billIds")
    private List<Long> billIds;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public List<Long> getBillIds() {
        return billIds;
    }
    public void setBillIds(List<Long> billIds) {
        this.billIds = billIds;
    }


    @Override
    public MeituanResponse<GetBillSummaryResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<GetBillSummaryResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "GetBillSummaryRequest{" + "hotelId=" + hotelId + "," + "billIds=" + billIds + "}";
    }
}
